import type { Me } from "../me/me.types";

export type LoginSendVcodeInput = {
  phone: string;
};

export type LoginInput = {
  phone: string;
  vcode: string;
  dkey: string;
};

export type LoginSendVcodeFn = (input: LoginSendVcodeInput) => Promise<string>;

export type LoginFn = (input: LoginInput) => Promise<Me>;

export type LoginApis = {
  login: LoginFn;
  loginSendVcode: LoginSendVcodeFn;
};
